<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.apache.shiro.web.filter.authc.FormAuthenticationFilter"%>
<%@ page import="org.apache.shiro.authc.ExcessiveAttemptsException"%>
<%@ page import="org.apache.shiro.authc.IncorrectCredentialsException"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>


<!DOCTYPE html>
<html>
<head>
<title>商家授权</title>
<script type="text/javascript">
  
  function openTopisv() {
        
        var codeUrl="https://oauth.tbsandbox.com/authorize";
        var appKey="1023011794";
        
        //测试账号：sandbox_b_01
        //测试账号密码：taobao1234
        
		var tempString = codeUrl
				+ "?response_type=code&client_id="
				+ appKey
				+ "&redirect_uri=http://localhost:8080/wms/auth/code&state=state";
		window.open(tempString, "", "", "");
	}


</script>
</head>
<body>
  商家授权
  <button value="" onclick="openTopisv();">进入商家授权</button>
</body>
</html>
